package com.hxl.tech.gateway.auth.dto.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hxl.tech.gateway.common.constant.AppConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * 用户 DTO 
 * @author soliddq
 * @date 2023-10-10
 */
@Data
public class UserDTO {

    @ApiModelProperty(value = "开发者ID")
    private String userId;

    @ApiModelProperty(value = "开发者名称")
    private String userName;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = AppConstant.StateEnum.description)
    private AppConstant.StateEnum state;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
